package com.example.saas.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 租户数据源
 * @author hqg
 */
@Getter
@Setter
@TableName("sys_tenant_datasource")
public class DataSource{

    @TableId(type = IdType.AUTO)
    private Long datasourceId;

    private String name;

    @TableField("`key`")
    private String key;

    private String driverClassName;

    private String url;

    private String username;

    private String password;

    private String status;

    private String remarks;

    private String isDeleted;

    private Long createdId;

    private String createdName;

    private LocalDateTime createdTime;

    private Long updatedId;

    private String updatedName;

    private LocalDateTime updatedTime;

}
